﻿using System.Data;
using MockPrjTeam4.Dao;
using MockPrjTeam4.Entity;


namespace MockPrjTeam4.Biz
{
    public class DirectorateBiz
    {
        public static DataTable GetTableDirectorates(bool inActive, int id)
        {
            return DirectorateDao.GetTableDirectorates(inActive, id);
        }

        public static DataTable Search(string range, bool inActive, int orgId)
        {
            return DirectorateDao.Search(range, inActive, orgId);
        }

        public static bool SetDirActive(int DirId)
        {
            return DirectorateDao.SetDirActive(DirId);
        }

        public static Directorate SearchDirName(string DirName)
        {
            return DirectorateDao.SearchDirName(DirName);
        }

        public static DataTable SearchTableDir(int dirId)
        {
            return DirectorateDao.SearchTableDir(dirId);
        }

        public static bool AddDirectorate(Directorate Dir, int id)
        {
            return DirectorateDao.AddDirectorate(Dir, id);
        }

        public static bool EditDirectorate(Directorate Dir, int orgId)
        {
            return DirectorateDao.EditDirectorate(Dir, orgId);
        }

        public static Directorate Search(int dirName)
        {
            return DirectorateDao.Search(dirName);
        }


    }
}